function chongzhi () {
  $.ajax({
    url:'/my/user/userinfo',
    success:function(res){
      if(res.status === 0 ){
     
       let form = layui.form
       form.val('aaa',res.data)
      }
    }
  })
}
chongzhi();
$('button[type=reset]').on('click',function(e){
e.preventDefault()
chongzhi()
})
$('form').on('submit',function(e){
e.preventDefault()
let data = $(this).serialize()
$.ajax({
  type:'POST',
  url:'/my/user/userinfo',
  data:data,
  success:function(res){
 if(res.status === 0) {
   layer.msg(res.message)
   window.parent.getUserInfo()
 }
  }
})
})